package com.baseframe.sys.controller;

import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.baseframe.common.annotation.VisitLog;
import com.baseframe.common.utils.PageUtils;
import com.baseframe.common.utils.R;
import com.baseframe.sys.service.IFrameVisitLogService;

/**
 * 
 * @author Administrator
 *
 */
@RestController
@RequestMapping("/frame/visitlog")
public class FrameVisitLogController extends AbstractController {

    @Autowired
    private IFrameVisitLogService frameVisitLogService;
    
//    /**
//     * 所有菜单列表
//     */
//    @RequestMapping("/list")
//    @RequiresPermissions("frame:visitlog:list")
//    public List<FrameVisitLog> list() {
//        List<FrameVisitLog> visitList = frameVisitLogService.selectList();
//
//        return visitList;
//    }
    
    
    
    /**
   	 * 所有列表
   	 */
    @VisitLog("访问日志")
   	@RequestMapping("/list")
   	public R list(@RequestParam Map<String, Object> params){
   		PageUtils page = frameVisitLogService.queryPage(params);

   		return R.ok().put("page", page);
   	}
    
//    /**
//	 * 角色列表
//	 */
//	@RequestMapping("/list")
//	@RequiresPermissions("frame:visitlog:list")
//	public R list(@RequestParam Map<String, Object> params){
//		PageUtils page = frameVisitLogService.queryPage(params);
//
//		return R.ok().put("page", page);
//	}

    
}
